package com.niodata.dp.monitor.sharelib.entity.zookeeper;

import java.io.Serializable;

/**
 * Created by ndp on 18-1-18.
 */
public class ZkNodeInfo implements Serializable {

  private String hostName;
  private String ipAddr;
  private String serverState;
  private int nodeCount;
  private int watchCount;
  private long avgLatency;
  private long maxLatency;
  private long minLatency;
  private long packetsReceived;
  private long packetsSent;
  private long numAliveConn;
  private long outStandingRequests;
  private int ephemeralsCount;

  private int followers;
  private String leader;
  private String zkVersion;

  public String getHostName() {
    return hostName;
  }

  public void setHostName(String hostName) {
    this.hostName = hostName;
  }

  public String getIpAddr() {
    return ipAddr;
  }

  public void setIpAddr(String ipAddr) {
    this.ipAddr = ipAddr;
  }

  public String getServerState() {
    return serverState;
  }

  public void setServerState(String serverState) {
    this.serverState = serverState;
  }

  public int getNodeCount() {
    return nodeCount;
  }

  public void setNodeCount(int nodeCount) {
    this.nodeCount = nodeCount;
  }

  public int getWatchCount() {
    return watchCount;
  }

  public void setWatchCount(int watchCount) {
    this.watchCount = watchCount;
  }


  public long getAvgLatency() {
    return avgLatency;
  }

  public void setAvgLatency(long avgLatency) {
    this.avgLatency = avgLatency;
  }

  public long getMaxLatency() {
    return maxLatency;
  }

  public void setMaxLatency(long maxLatency) {
    this.maxLatency = maxLatency;
  }

  public long getMinLatency() {
    return minLatency;
  }

  public void setMinLatency(long minLatency) {
    this.minLatency = minLatency;
  }

  public long getPacketsReceived() {
    return packetsReceived;
  }

  public void setPacketsReceived(long packetsReceived) {
    this.packetsReceived = packetsReceived;
  }

  public long getPacketsSent() {
    return packetsSent;
  }

  public void setPacketsSent(long packetsSent) {
    this.packetsSent = packetsSent;
  }

  public long getNumAliveConn() {
    return numAliveConn;
  }

  public void setNumAliveConn(long numAliveConn) {
    this.numAliveConn = numAliveConn;
  }

  public long getOutStandingRequests() {
    return outStandingRequests;
  }

  public void setOutStandingRequests(long outStandingRequests) {
    this.outStandingRequests = outStandingRequests;
  }


  public int getEphemeralsCount() {
    return ephemeralsCount;
  }

  public void setEphemeralsCount(int ephemeralsCount) {
    this.ephemeralsCount = ephemeralsCount;
  }

  public int getFollowers() {
    return followers;
  }

  public void setFollowers(int followers) {
    this.followers = followers;
  }

  public String getLeader() {
    return leader;
  }

  public void setLeader(String leader) {
    this.leader = leader;
  }

  public String getZkVersion() {
    return zkVersion;
  }

  public void setZkVersion(String zkVersion) {
    this.zkVersion = zkVersion;
  }
}
